package com.example.Web_chat.model;

import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
//群聊消息
public class GroupMessage {
    private Integer messageId;      // 消息ID
    private Integer groupId;        // 群聊ID
    @NonNull
    private Integer senderId;       // 发送者ID
    private String messageContent;  // 消息内容
    private LocalDateTime timestamp; // 时间戳
    private  String fromName;
}
